package com.ldy.core.vo;

import java.io.Serializable;

/**
 * 表字段vo
 * 
 * @author lindeyi
 */
public class FieldVO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 表名称
	 */
	private String tableName;
	
	/**
	 * id
	 */
	private String id;
	/**
	 * 字段名称
	 */
	private String name;

	/**
	 * 类型
	 */
	private String type;

	/**
	 * 长度
	 */
	private Integer size;

	/**
	 * 小数精度
	 */
	private Integer accuracy;

	/**
	 * 允许空
	 */
	private Boolean isNullable = true;

	/**
	 * 主键
	 */
	private Boolean isPrimaryKey = false;

	/**
	 * 默认值
	 */
	private String defaultValue;
	/**
	 * 备注
	 */
	private String remarks;

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public Integer getAccuracy() {
		return accuracy;
	}

	public void setAccuracy(Integer accuracy) {
		this.accuracy = accuracy;
	}

	public Boolean getIsNullable() {
		return isNullable;
	}

	public void setIsNullable(Boolean isNullable) {
		this.isNullable = isNullable;
	}

	public Boolean getIsPrimaryKey() {
		return isPrimaryKey;
	}

	public void setIsPrimaryKey(Boolean isPrimaryKey) {
		this.isPrimaryKey = isPrimaryKey;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
}
